SEPRO.pages.management = {
	
	init: function(){
		this.add_event_to_menu_list();	
		this.add_event_to_edit_info();
	},
	
	add_event_to_edit_info: function(){
		$(".edit-info").click(function(event){
			event.preventDefault();
			$(".fix-info").hide();
			$(".change-info").show();
		});
		$(".change-info input[type='submit']").click(function(event){
			event.preventDefault();
			$(".change-info").hide();
			$(".fix-info").show();
		});
	},
	
	add_event_to_menu_list: function(){
		$(".management-leftlayer li a").mouseover(function(event){
			var index = $(".management-leftlayer li a").index($(this)[0]);
			var currentEl = $(".management-leftlayer li a").eq(index);
			if(!currentEl.hasClass("menu-selected")){
				currentEl.find("img").attr("src", "images/list-arrow-orange.gif");
			}
		
		});
		$(".management-leftlayer li a").mouseout(function(event){
			var index = $(".management-leftlayer li a").index($(this)[0]);
			var currentEl = $(".management-leftlayer li a").eq(index);
			if(!currentEl.hasClass("menu-selected")){
				currentEl.find("img").attr("src", "images/list-arrow-gray.gif");
			}
		
		});
	}
}